import request from '@/utils/request'

export function login(data) {
  return request({
    url: `/user/login/${data.username}/${data.password}`,
    method: 'post'
  })
}

export function getInfo(token) {
  return request({
    url: `/user/verifyLogin/${token}`,
    method: 'get'
  })
}

export function logout() {
  return request({
    url: '/user/logout',
    method: 'post'
  })
}
